/* Item */
<template xlang="wxml">
  <div class="Item">
    <div class="title">
      <van-row>
        <van-col :span="10">{{data.title}}</van-col>
        <van-col :span="14">
          <View class="title_rgt">
            <van-icon name="eye" class="my_icon"/>
            <van-icon name="map-marked" class="my_icon"/>
            <van-icon name="bars" class="my_icon"/>
          </View>
        </van-col>
      </van-row>
    </div>
    <div class="content">
      <div class="lft">
        <van-icon name="shopping-cart " size="50px" color="#07c160"/>
      </div>
      <div class="rgt">设备名称：{{data.name}}</div>
      <div class="rgt">设备编号：{{data.num}}</div>
      <div class="rgt">定位位置：{{data.position}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object
    }
  },
  data: () => ({}),
  methods: {},
  computed: {},
  watch: {}
};
</script>

<style lang="less" scoped>
.Item {
  padding: 15px 15px 0 15px;
  &:last-child {
    margin-bottom: 10px;
  }
  .title,
  .content {
    background: #fff;
    padding: 10px;
  }
  .title {
    font-size: 18px;
    font-weight: 700;
    .title_rgt {
      text-align: right;
      .my_icon {
        margin-left: 10px;
        color: #1989fa
      }
    }
  }
  .content {
    position: relative;
    padding-left: 80px;
    height: 60px;
    .lft {
      position: absolute;
      text-align: center;
      left: 0;
      width: 80px;
      height: 60px;
      .my_icon {
        font-size: 20px;
        position: absolute;
        line-height: 60px;
      }
    }
    .rgt {
      font-size: 12px;
      color: #333;
      line-height: 20px;
    }
  }
}
</style>